﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Leesin : MonoBehaviour
{
    Animator _animator;
    int _attackHash;
    // Start is called before the first frame update
    void Start()
    {
        _animator = GetComponent<Animator>();
        _attackHash = Animator.StringToHash("attack");
    }

    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.A))
        {
            _animator.SetBool(_attackHash, !_animator.GetBool(_attackHash));
        }
    }
}
